package com.macro.mall.tiny.service;

import com.macro.mall.tiny.domain.AdminUserDetails;
import com.macro.mall.tiny.mbg.model.UmsAdmin;

import java.util.List;

/**
 * 后台用户管理
 * Created by jiachun.lu on 2025/01/23.
 */
public interface UmsAdminService {

    /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    AdminUserDetails getAdminByUsername(String username);

    /**
     * 用户名密码登录
     * @param username
     * @param password
     * @return
     */
    String login(String username, String password);

    void create(UmsAdmin entity);

    void update(UmsAdmin entity);

    void delete(Long id);

    UmsAdmin select(Long id);

    List<UmsAdmin> listAll(Integer pageNum, Integer pageSize);
}
